<!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width,initial-scale=1.0">
     <link rel="stylesheet" href="http://at.alicdn.com/t/font_390204_59czh3tkyphkt9.css">
    <link rel="icon" href="http://www.wclimb.site/images/avatar.png">
    <link rel="stylesheet" href="https://fonts.googleapis.com/icon?family=Material+Icons">
    <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
    <title></title>
  </head>
  <body>
    <div id="app"></div>
    <!-- built files will be auto injected -->
  </body>
</html>
<script>
	function resizeRoot(){
  //获取浏览器宽度
  var deviceWidth = document.documentElement.clientWidth;
  //初始化移动端的宽度
  var num = 750;
  var num1 = num / 100;
 if(deviceWidth > num){
  deviceWidth = num; 
 }
 document.documentElement.style.fontSize = deviceWidth / num1 + "px";
}
//根节点HTML的字体大小初始化
resizeRoot();
 
window.onresize = function(){
 resizeRoot();
};
</script>